<style>
    .admin-edit .layui-form-item .layui-input-inline {
        width: 260px;
    }
</style>
<div class="layui-form admin-edit" lay-filter="layPopup" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">用户名</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="username" value="{{ d.params.username }}" lay-verify="required"
                       placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">用户昵称</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="nickname" value="{{ d.params.nickname }}" placeholder="请输入用户昵称"
                       autocomplete="off" class="layui-input" lay-verify="required">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登录密码</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="password" value="{{ d.params.password }}" lay-verify="password"
                       placeholder="无需修改密码请留空" autocomplete="off" class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="name" value="{{ d.params.name }}" placeholder="请输入姓名" autocomplete="off"
                       class="layui-input" lay-verify="required">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">邮箱</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="email" value="{{ d.params.email }}" placeholder="请输入邮箱" autocomplete="off"
                       class="layui-input">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                <input type="text" name="mobile" value="{{ d.params.mobile }}" placeholder="请输入手机号"
                       autocomplete="off" class="layui-input" lay-verify="required|mobile">
            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">角色</label>
        <div class="layui-input-inline" id="adminPopupXmSelect"></div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <script template type="text/html">
                {{#  if(d.params.status == '1'){ }}
                <input type="checkbox" checked lay-skin="switch" title="启用|禁用"
                       lay-filter="statusSwitch">
                {{#  } else { }}
                <input type="checkbox" lay-skin="switch" title="启用|禁用" lay-filter="statusSwitch">
                {{#  } }}
            </script>
        </div>
    </div>

    <script template type="text/html">
        <input type="hidden" name="id" value="{{ d.params.id }}">
        <input type="hidden" id="admin_group_ids" value="{{ d.params.group_arr }}">
        <input type="hidden" name="status" value="{{ d.params.status }}">
    </script>

    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input class="layui-btn" lay-filter="laySubmitEdit" lay-submit type="button" value="确认">
        </div>
    </div>
</div>

<script lay-done="layui.data.sendParams(d.params)" template type="text/html"></script>
<script src="../web/res/js/auth/admin/other.js"></script>
